cmake_policy(PUSH)
cmake_minimum_required(VERSION 3.5 FATAL_ERROR)

project(rutil LANGUAGES C CXX)

if(NOT WIN32)
  option(USE_LIB_CARES "Link against libc-ares (rather than ${CMAKE_SOURCE_DIR}/rutil/ares)" OFF)
endif()

if(USE_LIB_CARES)
  message(STATUS "USE_LIB_CARES=${USE_LIB_CARES}, use libc-ares instand of ${CMAKE_SOURCE_DIR}/rutil/ares")
endif()

add_subdirectory(rutil)

cmake_policy(POP)